<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<form action="/CA_Project/login" method="post">
	<center>
		<table cellpadding=4 cellspacing=2 border=0>
		
			<tr>
				<th width="45%">User ID:</th>
				<th width=" 55%"><input type="text" name="userID" size=15
					maxlength=20>
				</th>
			</tr>
			<tr>
				<th width="45%">Password:</th>
				<th width="55%"><input type="password" name="password" size=15
					maxlength=20>
				</th>
			</tr>
			<tr>
				<th width="45%">Role:</th>
				<th><select name="role">
			    <option value = "staff">Staff</option>
			    <option value = "manager">Manager</option>
			    <option value = "admin">Admin</option>
			    </select></th>			
			    
			</tr>
		
		</table>
		<font color="red">
			
					<c:if  test="${flag}">Wrong User Name,Password or Role</c:if>
					<c:if test="${emp}">Please fill the text box!</c:if>
					<c:if test="${empUser}">User Name should not be empty</c:if>
					<c:if test="${notInt}">User Name should not be letter.</c:if>
					<c:if test="${empPassword}">Password should not be empty</c:if>
</font>
<input type="submit" name="Submit">
	</center>
	
	</form>
	
</body>
</html>